package server.net.handler;

import java.nio.ByteBuffer;
import server.net.Client;

/**
 * DEPRECATED
 * 
 * This class handles disconnect requests from the client.
 * Passes request down to Client class to be handled.
 * 
 * @author Vincent Tsuei
 * @version 2012-11-20
 * 
 * @deprecated simply shutdown the client and let the server recover.
 *              No need to request a disconnect.
 */
public class DisconnectRequestHandler implements ServerPacketHandler {

    @Override
    public int processPacket(Client client, ByteBuffer packet) {
        client.disconnect();
        return 0;
    }
    
}
